jQuery Method for determining whether Array [] is included in an array
- 2021-07-07 06:30:08
- OfStack
jQuery Method for determining whether Array [] is included in an array
var Menustr="1,2,3,4,5,6,7,8,9,10,11,12,";
var Menarrstr=Menustr.split(",");
if ($.inArray($(this).attr("id"), Menarrstr)) {
//...
}